package com.jishaokang.dao;

import com.jishaokang.model.dto.Chapter;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by NANA_Final on 2019/6/21.
 */
@Repository
public interface ChapterDAO {

    int selectTotalByCourseId(Chapter chapter);

    List<Chapter> selectByCourseId(Chapter chapter);

    Chapter selectByChapterId(Chapter chapter);

    Chapter selectRealByChapterId(Chapter chapter);

    void updateChapterVideo(Chapter chapter);

    void insert(Chapter chapter);

    void update(Chapter chapter);

    void delete(Chapter chapter);

    int selectTotalByState(Chapter chapter);

    List<Chapter> selectByState(Chapter chapter);

    void updateChapterState(Chapter chapter);

    void updateChapterTrialVideo(Chapter chapter);

    int selectUserIdByChapterId(int courseId);

    List<Chapter> selectRealByCourseId(Chapter chapter);

    void deleteByCourseId(int courseId);
}